//
//  MMGDiscoverViewController.swift
//  MyMicroblog
//
//  Created by Mac on 17/1/4.
//  Copyright © 2017年 itcast. All rights reserved.
//

import UIKit

class MMGDiscoverViewController: MMGBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // 添加左边 item - 注册
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", style: UIBarButtonItemStyle.done, target: self, action: #selector(clickRegisterItem))
        navigationItem.leftBarButtonItem?.setTitleTextAttributes( [NSForegroundColorAttributeName:UIColor.orange], for: UIControlState.normal)
        
        // 添加右边 item - 登录
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "登录", style: UIBarButtonItemStyle.done, target: self, action: #selector(clickLoginItem))
        navigationItem.rightBarButtonItem?.setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.orange], for: UIControlState.normal)
        
        visitorView.updataInfo(imageName: "visitordiscover_image_message", tipTitle: "登录后,将会发现好玩的惊喜哦,好多好多哦", isHome: false)
    }

    @objc private func clickRegisterItem() {
        
        
    }
    
    @objc private func clickLoginItem() {
        
    }

}
